package dao;

import java.util.List;

/**
 *
 * @author Alexander
 */
public interface IDAO<E, EntityManager> {
    
    public void persist (E entity, EntityManager em);
    
    public E find (Object id, EntityManager em);
    
    public void update (E entity, EntityManager em);
    
    public void delete (Object id, EntityManager em);
    
    public List<E> getList(EntityManager em);
    
}
